package com.nnnu.wsnackshop.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Set;

@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "更新角色 DTO")
public class UpdateRoleDTO extends AddRoleDTO {
    @NotNull
    @Schema(description = "角色ID", required = true, example = "2")
    private Long id;

    @Schema(description = "权限 ID 列表", example = "[1,2,3]")
    private Set<Long> permissionIds;
}
